import { get, post } from "@/utils/http";

export const logoutApi = (params) => get("/risk/logout", params); //是否登录
export const getStatisticsInfoList = (params) => post(`/risk/govern/getStatisticsInfoList`, params); //获取工作台治理统计数据
export const getPermMenuApi = (params) => get(`/risk/getPermMenu`, params); //获取左侧栏导航栏

export const configConditionApi = (params) => get(`/risk/config/condition`, params); //菜单配置通用接口(动态列，filter列，详情列)

//资产中心接口api  @mock https://mock.xiaojukeji.com/project/16162/interface/api/771270
export const assetTagsApi = (params) => get(`/risk/asset/tags`, params); //获取查看方式
export const assetListApi = (params) => post(`/risk/asset/list`, params); //资产列表接口
export const assetDetailApi = (params) => post(`/risk/asset/detail`, params); //资产详情
export const assetDetailRiskApi = (params) => post(`/risk/asset/detail/risk`, params); //资产详情-风险
export const assetDetailNumsApi = (params) => post(`/risk/asset/detail/nums`, params); //资产详情-数量
export const assetDetailChartApi = (params) => post(`/risk/asset/detail/chart`, params); //资产详情-图表

export const listSearchValueApi = (params) => post(`/risk/asset/list/search/value`, params); //筛选批量获取下拉数据
export const listSearchRelateApi = (params) => post(`/risk/asset/list/search/relate`, params); //关联查询

//帮助中心和反馈
export const helpConfigApi = (params) => get(`/ep/as/conf?ns=dbl_service_config&name=help&__caller=datasec`, params); //帮助中心
export const riskScopeConfigApi = (params) =>
  get(`/ep/as/conf?ns=dbl_service_config&name=risk_score_config&raw=true&__caller=data-sec-assets`, params); //反馈
export const configScoreApi = (params) => post(`/risk/config/score`, params); //打分评价保存
